Skip to content

Remove dead utilities from ax/core/utils.py (#5017)#5017

Closed
lena-kashtelyan wants to merge 1 commit into
facebook:mainfrom
lena-kashtelyan:export-D96015016
Closed

Remove dead utilities from ax/core/utils.py (#5017)#5017
lena-kashtelyan wants to merge 1 commit into
facebook:mainfrom
lena-kashtelyan:export-D96015016

Conversation

@lena-kashtelyan
Copy link
Copy Markdown
Contributor

@lena-kashtelyan lena-kashtelyan commented Mar 13, 2026

Summary:

Remove dead utilities from ax/core/utils.py that have no production callers
outside the module itself (only referenced in test_utils.py):

  • MissingMetrics (NamedTuple)
  • get_missing_metrics
  • get_missing_metrics_by_name
  • _get_missing_arm_trial_pairs
  • best_feasible_objective

Also remove the now-unused imports: numpy, numpy.typing, NamedTuple,
Data, MultiObjective, and ComparisonOp from utils.py.

Reviewed By: saitcakmak

Differential Revision: D96015016

@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 13, 2026

@lena-kashtelyan has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96015016.

@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Mar 13, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.83%. Comparing base (e2056d2) to head (e3ad767).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5017      +/-   ##
==========================================
- Coverage   96.83%   96.83%   -0.01%     
==========================================
  Files         605      605              
  Lines       65235    65174      -61     
==========================================
- Hits        63173    63113      -60     
+ Misses       2062     2061       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@meta-codesync meta-codesync Bot changed the title Remove dead utilities from ax/core/utils.py Remove dead utilities from ax/core/utils.py (#5017) Mar 13, 2026
lena-kashtelyan pushed a commit to lena-kashtelyan/Ax that referenced this pull request Mar 13, 2026
Summary:

Remove dead utilities from `ax/core/utils.py` that have no production callers
outside the module itself (only referenced in `test_utils.py`):

- `MissingMetrics` (NamedTuple)
- `get_missing_metrics`
- `get_missing_metrics_by_name`
- `_get_missing_arm_trial_pairs`
- `best_feasible_objective`

Also remove the now-unused imports: `numpy`, `numpy.typing`, `NamedTuple`,
`Data`, `MultiObjective`, and `ComparisonOp` from `utils.py`.

Reviewed By: saitcakmak

Differential Revision: D96015016
lena-kashtelyan pushed a commit to lena-kashtelyan/Ax that referenced this pull request Mar 13, 2026
Summary:

Remove dead utilities from `ax/core/utils.py` that have no production callers
outside the module itself (only referenced in `test_utils.py`):

- `MissingMetrics` (NamedTuple)
- `get_missing_metrics`
- `get_missing_metrics_by_name`
- `_get_missing_arm_trial_pairs`
- `best_feasible_objective`

Also remove the now-unused imports: `numpy`, `numpy.typing`, `NamedTuple`,
`Data`, `MultiObjective`, and `ComparisonOp` from `utils.py`.

Reviewed By: saitcakmak

Differential Revision: D96015016
Summary:
Pull Request resolved: facebook#5017

Remove dead utilities from `ax/core/utils.py` that have no production callers
outside the module itself (only referenced in `test_utils.py`):

- `MissingMetrics` (NamedTuple)
- `get_missing_metrics`
- `get_missing_metrics_by_name`
- `_get_missing_arm_trial_pairs`
- `best_feasible_objective`

Also remove the now-unused imports: `numpy`, `numpy.typing`, `NamedTuple`,
`Data`, `MultiObjective`, and `ComparisonOp` from `utils.py`.

Reviewed By: saitcakmak

Differential Revision: D96015016
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 14, 2026

This pull request has been merged in f3fd499.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants